﻿using System.Windows.Browser;

namespace Refract.Navigation
{
    /// <summary>
    /// Represents the browser hosting the application
    /// </summary>
    public class HtmlContext : IHtmlContext
    {

        #region IHtmlContext Members

        public string CurrentBookmark
        {
            get { return HtmlPage.Window.CurrentBookmark; }
        }

        public void NavigateToBookmark(string pageName)
        {
            HtmlPage.Window.NavigateToBookmark(pageName);
        }

        #endregion
    }
}
